﻿using LJ.Abstractions.DependencyInjection;
using LJ.EventBus.Abstractions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GEG.NGCRM.Event.Domain.SendEvent;

public class SendEventDomain(IEventBusPublisher eventBusPublisher) : ITransientDependency
{
    private readonly IEventBusPublisher _eventBusPublisher = eventBusPublisher;

    public async Task SendAsync(string key, string body)
    {
        await _eventBusPublisher.PublishAsync(key, body);
    }
}
